package me.xADudex.RandomLocation;

public enum SpawnOn
{
    AIR("AIR", 0), 
    GROUND("GROUND", 1), 
    TOP("TOP", 2), 
    COMBINED("COMBINED", 3);
    
    private SpawnOn(final String s, final int n) {
    }
    
    public static SpawnOn get(final String s) {
        if (s.equalsIgnoreCase("top")) {
            return SpawnOn.TOP;
        }
        if (s.equalsIgnoreCase("air")) {
            return SpawnOn.AIR;
        }
        if (s.equalsIgnoreCase("combined")) {
            return SpawnOn.COMBINED;
        }
        return SpawnOn.GROUND;
    }
    
    public String getNormalString() {
        if (this.equals(SpawnOn.AIR)) {
            return "Air";
        }
        if (this.equals(SpawnOn.TOP)) {
            return "Top";
        }
        if (this.equals(SpawnOn.COMBINED)) {
            return "Combined";
        }
        return "Ground";
    }
}
